Add a tooltip for the "Drop pending events" option.

Akinori MUSHA 10 years ago
parent
commit
b933a886ea
2 changed files with 6 additions and 1 deletions
  1. 4 0
      app/assets/stylesheets/application.css.scss.erb
  2. 2 1
      app/views/agents/_action_menu.html.erb

+ 4 - 0
app/assets/stylesheets/application.css.scss.erb

@@ -228,3 +228,7 @@ h2 .scenario, a span.label.scenario {
228 228
     display: none;
229 229
   }
230 230
 }
231
+
232
+.confirm-agent .popover {
233
+  width: 200px;
234
+}

+ 2 - 1
app/views/agents/_action_menu.html.erb

@@ -52,7 +52,7 @@
52 52
   </li>
53 53
 </ul>
54 54
 
55
-<div id="confirm-agent<%= agent.id %>" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="confirmAgentLabel" aria-hidden="true">
55
+<div id="confirm-agent<%= agent.id %>" class="confirm-agent modal fade" tabindex="-1" role="dialog" aria-labelledby="confirmAgentLabel" aria-hidden="true">
56 56
   <div class="modal-dialog modal-sm">
57 57
     <div class="modal-content">
58 58
       <div class="modal-header">
@@ -68,6 +68,7 @@
68 68
             <div class="form-group">
69 69
               <%= check_box_tag check_box_id = "agent#{agent.id}_drop_pending_events", 'true', false, name: :drop_pending_events %>
70 70
               <%= label_tag check_box_id, 'Drop pending events' %>
71
+              <span class="glyphicon glyphicon-question-sign hover-help" data-content="As soon as you enable this agent, it starts to receive pending events that have not been processed while it was disabled.  To prevent that from happening, you can check this option."></span>
71 72
             </div>
72 73
           <% end %>
73 74
           <%= f.hidden_field :disabled, value: (!agent.disabled).to_s %>